<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    div {
        width: 80%;
        height: 400px;
    }
</style>

<body>
    <div></div>
</body>

</html>
<script src="./echarts.min.js">
</script>
<script>
    var dom = document.querySelector('div')
    console.log(dom);
    var chart = echarts.init(dom)
    option = {
        title: [{
            text: 'Tangential Polar Bar Label Position (middle)'
        }],
        polar: {
            radius: [30, '80%']
        },
        angleAxis: {
            max: 4,
            startAngle: 75
        },
        radiusAxis: {
            type: 'category',
            data: ['a', 'b', 'c', 'd']
        },
        tooltip: {},
        series: {
            type: 'bar',
            data: [2, 1.2, 2.4, 3.6],
            coordinateSystem: 'polar',
            label: {
                show: true,
                position: 'middle',
                formatter: '{b}: {c}'
            }
        }
    };
    chart.setOption(option)
    window.addEventListener('resize', chart.resize)
</script>